﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EvecFlighterEdit.aspx.cs" Inherits="Web.EvecFlighterEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>乘机人明细 编辑</title>
    <base target="_self" />
    <meta content="ie=7" http-equiv="x-ua-compatible">
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
    <META HTTP-EQUIV="Expires" CONTENT="0">
    <link href="Styles/Style01.css" rel="stylesheet" type="text/css" />
    <script src="Scripts/jquery-1.7.min.js" type="text/javascript"></script>
    <script src="Scripts/easy_validator.pack.js" type="text/javascript"></script>
    <link href="Styles/validate.css" rel="stylesheet" type="text/css" />
    <script>
        $(function () {
            $("[reg]").parents("td").prev().append("<font color='#ff0000'>*</font>");
            $("#btnSave").click(function () {
                var isSubmit = true;
                $("form").find("[reg],[url]:not([reg])").each(function () {
                    if (!validate($(this), this.tagName)) {
                        isSubmit = false;
                    }
                });
                if (!isSubmit) {
                    alert("请确认'红字或红框'处的输入正确!");
                    return false;
                }
                return true;
            });
        });
    </script>
</head>
<body>
<form id="Form1" runat=server><input type=hidden runat=server id=Id />
<table class="s1">
<tr><td>乘机人</td><td><input id="FlighterName" runat="server" title="不能为空!" reg="."></td></tr>
<tr><td>身份证号</td><td><input id="FlighterId" runat="server" title="不能为空!" reg="."></td></tr>
<tr><td>手机号</td><td><input id="FlighterCell" runat="server" title="不能为空!" reg="."></td></tr>
</table>
<div style="text-align:right;margin-right:24px;margin-top:6px;">
    <asp:button runat="server" text="保存" id="btnSave" onclick="btnSave_Click"/>
    <input type=button value="关闭" onclick="window.close();" />
</div>
</form>
</body>
</html>